package com.shuyan.base.algorithm;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;

public class Exercise05 {
    public static void main(String[] args) {
        Double[] f={1.2d,1.6d,1.8d,2.9d};
        List<Double> list= Arrays.asList(f);
        Double sum=list.stream().mapToDouble((x)->x).sum();
        System.out.println(sum);
        Double d=Double.parseDouble("1.2");
        System.out.println(d);
        Integer a=1;
        Float f2=a.floatValue();
        String arteryPressAvg= new BigDecimal("10.0").add(new BigDecimal("40.00").subtract(new BigDecimal("10")).divide(new BigDecimal("3"))).toString();
        System.out.println(arteryPressAvg);
    }
}
